Closed
Conversation
Display NumCitations from the scholar cache alongside year for each article. The data was already being fetched — it just wasn't shown in the templates. Shows as "N cited" when the count is non-zero. Updated all three themes (default, minimal, forest) and the legacy research.html template. Closes #513 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
Adds citation count display to the research/publications pages across all themes by surfacing the already-fetched NumCitations field in the relevant templates.
Changes:
- Update research page templates to render
"N cited"whenNumCitationsis present. - Adjust Bootstrap column layout to include a dedicated citation-count column.
- Apply the change consistently across minimal, forest, and default themes (including the legacy
research.html).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| themes/minimal/templates/page_research.html | Adds a citations column alongside year in the minimal theme research page template. |
| themes/forest/templates/page_research.html | Adds a citations column alongside year in the forest theme research page template. |
| themes/default/templates/research.html | Updates the legacy default research template to show citation counts. |
| themes/default/templates/page_research.html | Updates the default theme research page template to show citation counts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| </div> | ||
| <div class="col" style="color: #7a937a;">{{.Year}}</div> | ||
| <div class="col-2" style="color: #7a937a;">{{.Year}}</div> | ||
| <div class="col-2" style="color: #7a937a;">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div> |
Comment on lines
+20
to
+21
| <div class="col-2">{{.Year}}</div> | ||
| <div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div> |
Comment on lines
+25
to
+26
| <div class="col-2">{{.Year}}</div> | ||
| <div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div> |
Comment on lines
+19
to
+20
| <div class="col-2">{{.Year}}</div> | ||
| <div class="col-2">{{ if .NumCitations }}{{ .NumCitations }} cited{{ end }}</div> |
Collaborator
Author
|
superseeded by #522 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Display the citation count for each article on the research page. The
NumCitationsfield was already being fetched by the scholar plugin — it just wasn't shown in the templates.Shows as "N cited" next to the year when the count is non-zero. Updated all three themes and the legacy research template.
Closes #513
Test plan
🤖 Generated with Claude Code